<?php

class Photo_Controller_Browse_Ajax_Theater extends Nuo_Controller
{
	function execute($request)
	{
		list($type,$id) =  explode('_', $request->getParam('data-id'));
		
		$photo = Nuo::getItem('photo', $id);
		$viewer = Nuo::getUser();
		return  array(
			'html' => $this -> render(array(
				'photo' => $photo,
				'viewer' => $viewer,
			)),
			'photo' => $photo -> getPhotoUrl('o')
		);

	}

}
